package com.dal.common.entity;

import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.List;

/**
 * @ClassName Diralc
 * @Author jian
 * @Date 3:42 PM 2022/9/15
 **/
public class Diralc {
    private static final long serialVersionUID = 4115018474059399555L;

    //private Store orgGid;
    //private Vendor vendor;
    //private Store receiver;
    private Date ocrDate;
    private Date rcvTime;
    private String psr;
    private BigDecimal total;
    private BigDecimal tax;
    private BigDecimal alcTotal;
    private BigDecimal alcTax;
    private Integer stat = 0;
    private Date sndTime;
   // private Store src;
    private Integer ivcReg = 0;
    private Integer sendCount = 0;
    //private Vendor billTo;
    private Date payDate;
    private String ordNum;
    private String srcNum;
    private String srcCls;
    private Integer ivcReged = 0;
    private Integer ivcPay = 0;
    private Integer alcIvcReg = 0;
    private String payMode;
    private Integer ctbReged = 0;
    private Integer ctbed = 0;
    private BigDecimal sTotal = BigDecimal.ZERO;
    private BigDecimal dTotal = BigDecimal.ZERO;
    private BigDecimal rTotal = BigDecimal.ZERO;
    private BigDecimal taxRate = BigDecimal.ZERO;
    private BigDecimal sAmt = BigDecimal.ZERO;
    private BigDecimal sTax = BigDecimal.ZERO;
    private BigDecimal scAmt = BigDecimal.ZERO;
    private BigDecimal scTax = BigDecimal.ZERO;
    private BigDecimal rcvQty = BigDecimal.ZERO;
   // private Store balUnit;
    private Integer distType;
    private Integer pvi = 0;
    private Integer purChannel; // 已废弃
    private Integer purMode = 2; // 手工建单默认自采
    private BigDecimal storeTotal = BigDecimal.ZERO;
    private BigDecimal storeTax = BigDecimal.ZERO;

    // 界面去掉的字段
    private String cntrNum;
    private Integer cntrVersion;
    private BigDecimal oca = BigDecimal.ZERO;
    private String bckCls;
    private String calcBase;
    private Integer payTerms;
    private BigDecimal pviAdj = BigDecimal.ZERO;
    private String uuid;
    private String oCls;
    private String ordCls;
    private Integer wrh;
    private String modNum;
    private String vendorNum;
    private String alc;
    private Integer virCenterGid;
    private BigDecimal alcFee = BigDecimal.ZERO;
    private Integer sender = 0;
    private String saleMode;
    private String pviCls;
    private String dataSource;
    private String outCheckCenter;
    private String inCheckCenter;
    private Integer checkMode = 0;

    public static void main(String[] args) {
        String time = "13:00:00";
        String[] split = time.split(":");
        Calendar calendar = Calendar.getInstance();
        calendar.set(Calendar.HOUR_OF_DAY, Integer.valueOf(split[0]));
        calendar.set(Calendar.MINUTE, Integer.valueOf(split[1]));
        calendar.set(Calendar.SECOND, Integer.valueOf(split[2]));
        calendar.set(Calendar.MILLISECOND, 0);
        Date time1 = calendar.getTime();
        String format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(time1);
        System.out.println(format);
    }
}
